package com.spring.design.bridge;

/**
 * 桥接模式：案例：JDBC的driver
 */
public class Client {
    public static void main(String[] args) {
        //获取折叠手机(样式 +品牌)
        Phone phone = new FoldedPhone(new XiaoMi());
        phone.open();
        phone.call();
        phone.clear();
        System.out.println("--------------------------");
        Phone phone2 = new UpRightPhone(new Vivo());
        phone2.open();
        phone2.call();
        phone2.clear();

    }
}
